import request from '@/utils/request'

// 创建警示标志
export function createRiskWarningSign(data) {
  return request({
    url: '/biz/risk-warning-sign/create',
    method: 'post',
    data: data
  })
}

// 更新警示标志
export function updateRiskWarningSign(data) {
  return request({
    url: '/biz/risk-warning-sign/update',
    method: 'put',
    data: data
  })
}

// 删除警示标志
export function deleteRiskWarningSign(id) {
  return request({
    url: '/biz/risk-warning-sign/delete?id=' + id,
    method: 'delete'
  })
}

// 获得警示标志
export function getRiskWarningSign(id) {
  return request({
    url: '/biz/risk-warning-sign/get?id=' + id,
    method: 'get'
  })
}

// 获得警示标志分页
export function getRiskWarningSignPage(query) {
  return request({
    url: '/biz/risk-warning-sign/page',
    method: 'get',
    params: query
  })
}

// 导出警示标志 Excel
export function exportRiskWarningSignExcel(query) {
  return request({
    url: '/biz/risk-warning-sign/export-excel',
    method: 'get',
    params: query,
    responseType: 'blob'
  })
}

// 获得警示标志分页
export function getWarningSignPage(query) {
  return request({
    url: '/biz/risk-warning-sign/getWarningSignPage',
    method: 'get',
    params: query
  })
}
